package com.yusi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yusi.entity.Airplane;
import com.yusi.entity.FlightMana;
import com.yusi.entity.dto.GetCity;
import com.yusi.entity.dto.RespBean;
import com.yusi.entity.dto.RespPageBean;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yusi
 * @since 2022-01-06
 */
public interface IFlightManaService extends IService<FlightMana> {

    /**
     * 新增飞机种类
     * @param flightMana
     * @return
     */
    RespBean saveAirPort(FlightMana flightMana);

    RespPageBean getAirPort(@Param("currentpage") Integer currentpage, @Param("size") Integer size,@Param("input") String input, @Param("airplane") FlightMana flightMana, @Param("beginDateScope") LocalDate[] beginDateScope);

    List<GetCity> getairbydis(Double dis);
}
